var $ = require('jquery');
var html = require('./index.html');
var $recentContactsTmp = $(html);
var recentList = require('../recentList');


exports.create = function ($parent, user) {
  var $recentContacts = $recentContactsTmp.clone();
  //在线索信息栏添加tabs
  // var $clueTabs = clueTabs.create($recentContacts.find('ul.im-clue-tab'), tabType);
  // var $clueContent = clueContent.create($recentContacts.find('.im-clue-content'), tabType, info);
  var $recentList = recentList.create($recentContacts.find('.recentPerson'), user);
  $parent.append($recentContacts);
  return new RecentContacts($recentList);
};

function RecentContacts(recentList) {
   this.recentList = recentList;
}
